package com.example.tian.mvpforurse.utils;

import android.support.annotation.StringRes;

import com.example.tian.mvpforurse.BuildConfig;

import java.sql.Time;
import java.util.Timer;

import timber.log.Timber;

/**
 * @author tian on 2018/11/21
 */
public class AppLogger {

    public static void init(){
        if (BuildConfig.DEBUG){
            Timber.plant(new Timber.DebugTree());
        }
    }

    public  static void d(String s, Object... objects){
        Timber.d(s, objects);
    }

    public static void d(Throwable throwable, String s, Object... objects){
        Timber.d(throwable, s, objects);
    }

    public static void i(String s, Object... objects){
        Timber.i(s, objects);
    }

    public static void i(Throwable throwable, String s, Object... objects){
        Timber.i(throwable, s, objects);
    }

    public static void w(String s, Object... objects){
        Timber.w(s, objects);
    }

    public static void w(Throwable throwable, String s, Object... objects){
        Timber.w(throwable, s, objects);
    }

    public static void e(String s, Object... objects){
        Timber.e(s, objects);
    }

    public static void e(Throwable throwable, String s, Object... objects){
        Timber.e(throwable, s, objects);
    }




}
